extends Node2D

@onready var timer: Timer = $Timer
@onready var enemy_01 = preload("res://scenes/enemies/enemy_01_.tscn")

func enemy_01_create() -> void:
	var _enemy01 = Game.instance_node(enemy_01, Vector2(randf_range(0, 384), randf_range(-157, -137)), Game.enemies, global_rotation)

func _on_timer_timeout() -> void:
	randomize()
	if Game.enemy_create:
		enemy_01_create()
	timer.wait_time = randf_range(0.1, 0.5)
